package com.x.erp.model;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

/**
 * 贷款线索
 * @author pansong
 *
 */
@MappingTable(tableName="ERP_LOAN_CLUE")
public class LoanClue extends BaseObject {

	private static final long serialVersionUID = 2991897110256068179L;

	@MappingColumn(columnName = "LOAN_CLUE_ID", columnPk = true, columnLength = 32)
	private String loanClueId;//代款线索ID
	
	@MappingColumn(columnName = "LOAN_TYPE")
	private Integer loanType;//贷款类型（1：消费贷、2：库存贷）
	
	@MappingColumn(columnName = "MODEL_ID")
	private Integer modelId;//车型
	
	@MappingTable(tableName = "BASE_MODEL")
	private Model model;// 车型
	
	@MappingColumn(columnName = "LOAN_PERIOD")
	private Integer loanPeriod;//贷款期数
	
	@MappingColumn(columnName = "LOAN_AMOUNT")
	private BigDecimal loanAmount;//贷款金额
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@MappingColumn(columnName = "LOAN_TIME")
	private Date loanTime;//贷款时间
	
	@MappingColumn(columnName = "LOAN_MORTGAGE")
	private String loanMortgage;//抵押车辆（文本信息）
	
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@MappingColumn(columnName = "LOAN_CREATE_TIME")
	private Date loanCreateTime;//创建时间

	public LoanClue() {
	}

	public String getLoanClueId() {
		return loanClueId;
	}

	public void setLoanClueId(String loanClueId) {
		this.loanClueId = loanClueId;
	}

	public Integer getLoanType() {
		return loanType;
	}

	public void setLoanType(Integer loanType) {
		this.loanType = loanType;
	}

	public Integer getModelId() {
		return modelId;
	}

	public Model getModel() {
		return model;
	}

	public void setModel(Model model) {
		this.model = model;
	}

	public void setModelId(Integer modelId) {
		this.modelId = modelId;
	}

	public Integer getLoanPeriod() {
		return loanPeriod;
	}

	public void setLoanPeriod(Integer loanPeriod) {
		this.loanPeriod = loanPeriod;
	}

	public BigDecimal getLoanAmount() {
		return loanAmount;
	}

	public void setLoanAmount(BigDecimal loanAmount) {
		this.loanAmount = loanAmount;
	}

	public Date getLoanTime() {
		return loanTime;
	}

	public void setLoanTime(Date loanTime) {
		this.loanTime = loanTime;
	}

	public String getLoanMortgage() {
		return loanMortgage;
	}

	public void setLoanMortgage(String loanMortgage) {
		this.loanMortgage = loanMortgage;
	}

	public Date getLoanCreateTime() {
		return loanCreateTime;
	}

	public void setLoanCreateTime(Date loanCreateTime) {
		this.loanCreateTime = loanCreateTime;
	}
}